﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Colorful.Control.Services;
using Colorful.Control;
using System.Windows;

namespace Colorful.Test.Unit
{
    [TestClass]
    public class ClipboardManagerTest
    {     
        [TestMethod]
        public void AddPaletteToClipboardManagerTest()
        {
            var target = new ClipboardManager();
            var palette = new Palette();
            palette.Name = "My palette";

            target.AddToClipboard(palette);
            foreach (ICopyColors formatter in target.Formatters)
            {
                Assert.IsTrue(Clipboard.GetDataObject().GetDataPresent(formatter.FormatName));
            }
        }
    }
}
